package service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import dao.MovieDAO;
import domain.Movie;
import service.IMovieService;

@Service
public class MovieService implements IMovieService{
	@Autowired
	private MovieDAO dao;
	
	public List<Movie> listAll(Integer startPage, Integer pageSize) {
		return dao.listAll(startPage, pageSize);
	}

	public Integer addMovie(Movie movie) {
		return dao.addMovie(movie);
	}

	public Integer deleteMovie(Long id) {
		return dao.deleteMovie(id);
	}

}
